<!-- 导航URL -->
<div class="row wrapper border-bottom white-bg page-heading">
	<div class="col-md-12">
		<ol class="breadcrumb">
			<li><a>主页</a></li>
			<li><a>收单机构管理 </a></li>
			<li class="active"><strong>核心交易预警</strong></li>
		</ol>
	</div>
</div>
<!-- 主要内容 -->
<div class="wrapper wrapper-content animated fadeIn" ng-controller="jumpRouteBeforeSettingCtrl">
	<form class="form-horizontal">
	<div class="row">
		<div class="col-lg-12">
			<div class="ibox float-e-margins">
				<div class="ibox-title">
					<h5>预警设置列表</h5>
					<!--<div ibox-tools></div>-->
				</div>
				<div class="ibox-content">
					<div class="form-group">
						短信预警模板:（普通刷卡/优享）<br />
						1.自动调配:【支付随心】YS智能路由调配已完成，[路由ID][备注]调整后目标金额xxxx元，请关注!
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">短信接收人：</label>
						<div class="col-sm-10">
							<textarea rows="3" cols="100" ng-model="msgReceiver[0].msg">
							</textarea>
						</div>
					</div>
				</div>
			</div>	
		</div>
	</div>
	<div class="row">
		<div class="col-lg-12">
			<div class="ibox float-e-margins">
				<div class="ibox-content">
					<div class="form-group">
						2.开启优享:【支付随心】因预估非优享交易量小于核心交易总额度，现已开启YS[路由id][备注]目标金额xxxx元，请关注!
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">短信接收人：</label>
						<div class="col-sm-10">
							<textarea rows="3" cols="100" ng-model="msgReceiver[1].msg">
							</textarea>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
		<div class="row">
			<div class="col-lg-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<div class="form-group">
							3.调整路由目标金额小于等于该路由已累计跑量:（普通刷卡/优享）<br />
							【支付随心】YS预估目标金额[x]小于等于[路由id][备注]已累计跑量[x]元，已调整，请及时关注!
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">短信接收人：</label>
							<div class="col-sm-10">
							<textarea rows="3" cols="100" ng-model="msgReceiver[2].msg">
							</textarea>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-lg-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<div class="form-group">
							4.系统中断，导致自动调配失败:<br />
							【支付随心】因YS系统异常，本次自动调配任务失败，请及时关注!
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">短信接收人：</label>
							<div class="col-sm-10">
							<textarea rows="3" cols="100" ng-model="msgReceiver[3].msg">
							</textarea>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-lg-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<div class="form-group">
							5.未达标预警设置<br />
							【支付随心】YS[time][预警路由id][备注]已跑量[x]元，当前比例为[x]未达到预警比例[x]，请关注!
						</div>
						<div ng-repeat="item in beforeGroup">
							<div class="form-group">
								<label class="col-sm-2 control-label"><i class="red_req">*</i>5.{{$index + 1}}预警时间</label>
								<div class="col-sm-8 form-inline">
									<input class="form-control" type="datetime" readonly ng-model="item.warnTime"
										   onchange="" style="width:auto;display:inline-block;"
										   onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'HH:mm:ss'})"/>预警路由ID<input type="text" class="form-control" ng-model="item.jumpId">预警比例
									<input type="text" class="form-control" ng-model="item.scale" ng-change="toLimit(item,'scale','{{item.scale}}')">%
									<input hidden ng-model="item.id" value="$index">
									<a ng-if="$index == 0" ng-click="addBeforeGroup($index)">增加</a><a ng-if="$index != 0" ng-click="deleteBeforeGroup($index)" style="color: red;">删除</a><br />
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">短信接收人：</label>
							<div class="col-sm-10">
							<textarea rows="3" cols="100" ng-model="msgReceiver[4].msg">
							</textarea>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label"></label>
							<div class="col-sm-6">
								<button class="btn btn-primary btn-mr20" type="button" ng-click="update()" >确定
								</button>
								<button class="btn btn-primary8 btn-mr20" type="button" ui-sref="org.routeMonitor">返回</button>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</form>

</div>